package demo.protocolEncodeDecode;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MyIOHandler extends IoHandlerAdapter {

	private static final Logger log = LoggerFactory.getLogger(MyIOHandler.class);

	@Override
	public void messageReceived(IoSession session, Object message) throws Exception {
		SmsObject sms = (SmsObject) message;
		log.info("receive msg [" + sms.getMessage() + "]");
	}
}
